home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tcl / strmatch.z / strmatch
Text File  |  1998-10-30  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333TTTTccccllll))))                                    TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tcl_StringMatch - test whether a string matches a pattern
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
  13.  
  14.      int
  15.      TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh(_s_t_r_i_n_g, _p_a_t_t_e_r_n)
  16.  
  17. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  18.      char*_s_t_r_i_n_g(in)
  19.      String to test.
  20.  
  21.      char*_p_a_t_t_e_r_n(in)
  22.      Pattern to match against string.  May contain special characters from the
  23.      set *?\[].
  24.  
  25.  
  26. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  27.      This utility procedure determines whether a string matches a given
  28.      pattern.  If it does, then TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 1.  Otherwise
  29.      TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 0.  The algorithm used for matching is the same
  30.      algorithm used in the ``string match'' Tcl command and is similar to the
  31.      algorithm used by the C-shell for file name matching;  see the Tcl manual
  32.      entry for details.
  33.  
  34.  
  35. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  36.      match, pattern, string
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.